package day2.深克隆;

public class Test {
    public static void main(String[] args) throws Exception{
        Teacher t = new Teacher("老王",30);
        Stu s1 = new Stu("a1",23,t);
        Stu s2 = (Stu) s1.clone();
        System.out.println(s1);
        System.out.println(s2);
        System.out.println(s1.t==s2.t);
    }
}
